<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@ page import ="java.sql.*" %>
<html>
<head>
    <title>Самый Лучший Блог!!! :)</title>
</head>
<body>
    <jsp:useBean id="sql" class="blog132.ServBean" scope="request"/>

<%
    ResultSet result = null;
    result = sql.getMessages();

    if (result==null) out.print("ИЗМЕНАААААА!!! <br>" +sql.getErrorText()); else {
      boolean more = result.next ();
      while (more) {
        out.print(result.getString("ID")+ " " +result.getString("Text"));
        out.print("<br>");
        more = result.next ();
      }
    }
    sql.disconnect();
%>

<A HREF="/web/add.jsp">Добавить</A>
</body>
</html>